package com.设计模式.工厂模式;

/**
 * @author Fitch
 */
public class ShapeFactoryDemo {

    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();

        Shape shape1= shapeFactory.getShape("rectangle");
        shape1.draw();
    }
}
